package com.cn.jsdr.controller;

import com.cn.jsdr.service.DelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
@RequestMapping("del")
public class DelController {

    @Autowired
    private DelService delService;
    @RequestMapping("test")
    @ResponseBody
    public Map DelDate(int id){
        Map m =new HashMap();
        m.put("id",id);
        delService.delete("3",m);
        return m;
    }
}
